cmake_minimum_required(VERSION 3.5)


set(GLFW_BUILD_DOCS OFF CACHE BOOL "" FORCE)
set(GLFW_BUILD_TESTS OFF CACHE BOOL "" FORCE)
set(GLFW_BUILD_EXAMPLES OFF CACHE BOOL "" FORCE)


#  find glfw3 opengl glm
find_package(glfw3 REQUIRED)


# всё что находиться в папке core будет линковаться статически
add_library(EngineWindow STATIC window.cpp window.h)


# link glfw and opengl
target_link_libraries(EngineWindow PUBLIC glfw)
target_link_libraries(EngineWindow PUBLIC GL)


# glad
target_include_directories(EngineWindow PUBLIC ../glad/include/)
target_link_libraries(EngineWindow PUBLIC glad)
